const http = require('http');
const server = http.createServer((req,res)=>{
    console.log(req.method)
    console.log(req.url)
    console.log(req.httpVersion)
    console.log(req.headers)
    console.log(req.headers.host)
    res.end('hello')
})
server.listen(8080,()=>{
    console.log('服务已启动...')
})